home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / rocketcar2.swf / scripts / frame_9 / PlaceObject2_448_64 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2008-09-24  |  1.1 KB  |  55 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.paused)
  3.    {
  4.       return undefined;
  5.    }
  6.    if(!_root.car.onfloor)
  7.    {
  8.       if(Key.isDown(37))
  9.       {
  10.          _visible = true;
  11.          if(_root.sound)
  12.          {
  13.             if(!sound)
  14.             {
  15.                _root.steamSideB.start(0,99999);
  16.                sound = true;
  17.             }
  18.          }
  19.       }
  20.    }
  21.    if(_root.gravityType == "normal")
  22.    {
  23.       if(!Key.isDown(37) or _root.car.onfloor or _root.fake._rotation < -20 or _root.fake._rotation > 20)
  24.       {
  25.          _visible = false;
  26.       }
  27.    }
  28.    if(_root.gravityType == "normal")
  29.    {
  30.       if(!Key.isDown(37) or _root.car.onfloor)
  31.       {
  32.          _root.steamSideB.stop();
  33.          sound = false;
  34.       }
  35.    }
  36.    if(_root.gravityType == "reverse")
  37.    {
  38.       if(!Key.isDown(37))
  39.       {
  40.          _visible = false;
  41.          _root.steamSideB.stop();
  42.          sound = false;
  43.       }
  44.    }
  45.    _X = _root.fake._x + 30;
  46.    if(_root.gravityType == "normal")
  47.    {
  48.       _Y = _root.fake._y - 14;
  49.    }
  50.    if(_root.gravityType == "reverse")
  51.    {
  52.       _Y = _root.fake._y + 10;
  53.    }
  54. }
  55.